<template>

  <div>
    <h3>A组件：{{name}}</h3>
    <button @click="send">将数据发送给C组件</button>
  </div>

</template>

<script>
  import bus from '../../Utils/bus'
  export default {
    name: 'BindSubA',
    data() {
      return {
        name: 'tom'
      }
    },
    methods: {
      send() {
        bus.$emit('data-a', this.name);
      }
    }
  }
</script>

<style scoped>

</style>
